package net.eldeen.stockhack.service;

import java.io.IOException;
import java.math.BigDecimal;

import org.apache.http.client.ClientProtocolException;

public interface WebConnect {

  public boolean login() throws ClientProtocolException, IOException;

  public String fetchStocksData() throws ClientProtocolException, IOException;

  public int tradeStock(String stockName, boolean buy, int shares, BigDecimal price);

  public boolean logout() throws ClientProtocolException, IOException;
}
